package com.panshi.api.api;

import com.panshi.api.bean.ArticleNoBean;
import com.panshi.api.util.PageSizeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/7 0007 下午 2:20
 */
@FeignClient("XiaoWangYa")
@Api("文章审核接口")
public interface ArticleNoPort {

    @PostMapping("/addArticNoInfo")
    @ResponseBody
    @ApiModelProperty("新增文章未审核信息")
    String addArticNoInfo (@RequestBody ArticleNoBean articleNoBean);

    @PostMapping("/deleteArticleNoInfo/{id}")
    @ResponseBody
    @ApiModelProperty("删除文章未审核信息")
    String deleteArticleNoInfo (@PathVariable int id);

    @PostMapping("/queryAssignArticleNoInfo")
    @ResponseBody
    @ApiModelProperty("查询指定用户文章未审核信息")
    PageSizeVO queryAssignArticleNoInfo (@RequestBody PageSizeVO pageSizeBean);

    @PostMapping("/queryArticleNoAll")
    @ResponseBody
    @ApiModelProperty("查询所有未审核文章")
    PageSizeVO queryArticleNoAll(@RequestBody PageSizeVO pageSizeBean);

    @PostMapping("/updateAssignArticleNoInfo")
    @ResponseBody
    @ApiModelProperty("修改指定用户文章未审核信息")
    String updateAssignArticleNoInfo (@RequestBody ArticleNoBean articleNoBean);
}
